package edu.sctu.zhangwang.month201506.day20150605;

/**
 * Created by Administrator on 2015/6/5.
 */
public class CathsDemo {
    public static void main(String[] args) {
        String s = "";
        int i = 0;
        try{
            s = args[0];
            i = Integer.parseInt(s);
        }catch (IndexOutOfBoundsException e){
            System.out.println("没有输入命令行参数");
            System.exit(0);
        }catch (NumberFormatException e){
            System.out.println("输入的数据格式不正确");
            return ;
        }
        finally {
            System.out.println("输入的数据为："+s);
        }
        System.out.println("here is the end of the program");
    }
}
